<?php
include('../../__global.php');
include(SERVER_ROOT_PATH.'/include/config/ml_catelog.php');

class aj_clean_notice_count extends ml_controller
{

    public function initParam()
    {

    }
    public function checkParam()
    {
        $this->check_referer();
        if(!$this->check_permission(ML_PERMISSION_LOGIN_ONLY)) {
            return $this->api_output(ML_RCODE_NOLOGIN);
        }
        else if(!$this->check_permission(ML_PERMISSION_LOGIN_CANWRITE)) {
            return $this->api_output(ML_RCODE_NOACTIVE);
        }
    }
    public function main()
    {
        $oRdsNotice = new ml_model_rdsNotice();
        $oRdsNotice->clean_user_all($this->__visitor['uid']);
        
        $this->api_output(ML_RCODE_SUCC , $data['pins']);
    }
    
}
new aj_clean_notice_count();